package com.tyk.bookstore.front.product.model.query;


import com.tyk.bookstore.front.common.core.model.query.PageQuery;
import com.tyk.bookstore.front.product.model.enume.BookSortOrder;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class BookNormalQuery extends PageQuery {

    @Schema(description = "分类ID（一级/二级/三级）")
    private String classificationId;

    @Schema(description = "关键词")
    private String keyword;

    @NotNull
    @Schema(description = "排序方式[1综合，2销量，3价格，4评论数]", requiredMode = Schema.RequiredMode.REQUIRED)
    private BookSortOrder sortOrder;

    @NotNull
    @Schema(description = "是否降序", requiredMode = Schema.RequiredMode.REQUIRED)
    private Boolean desc;

}
